#include <iostream>
#include <unistd.h>
#include <cstdint>
#include <string>
#include "SelectServer.hpp"

int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        std::cout << "Usage: [./server port]" << std::endl;
        return 1;
    }
    uint16_t port = std::stoi(argv[1]);
    
    selectServer* server = new selectServer(port);
    server->loop();
    return 0;
}